/*
 * 项目信息
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const projectApi = {
   // 获取项目信息
   detail: (projectId) => {
    return getRequest(`/tm/project/get?id=${projectId}`);
  },
  // 保存项目信息
  save: (param) => {
    return postRequest('/tm/project/save', param);
  },

  // 删除项目信息
  delete: (projectId) => {
    return getRequest(`/tm/project/delete?id=${projectId}`);
  },

  // 分页查询项目信息
  pageQuery: (param) => {
    return postRequest('/tm/project/searchPage', param);
  },
  // 保存项目周变更信息
  saveDetail: (param) => {
    return postRequest('/tm/projectWeekly/save', param);
  },
  // 分页查询项目明细信息
  detailPageQuery: (param) => {
    return postRequest('/tm/projectWeekly/searchPage', param);
  },
  //批量修改状态
  batchUpdateProject:(param)=>{
    return postRequest('/tm/project/batchUpdateProject', param);
  },
};
